package br.com.lh.urabuilder.view.arrow.drawer
{
	import br.com.lh.urabuilder.view.ActionComponent;
	
	import flash.geom.Point;
	
	public class ArrowDrawerFactory
	{
		public function ArrowDrawerFactory(){
		}
		
		public static function getArrowDrawer(startPoint:Point,endPoint:Point
		,startComponent:ActionComponent,endComponent:ActionComponent):IArrowContainerDrawer{
			if (startComponent == endComponent){
				return new ArrowContainerSelfDrawer(startComponent.image);
			}else{
				return new ArrowContainerDrawer(startPoint,endPoint);
			}
		}

	}
}